#include "Processbar.h"
//download
double bandwidth = 1024*1024*1.0;
void download(double File_size,callback_t callback_t)
{
  double current = 0.0;
  while(current <= File_size)
  {
    callback_t(File_size, current);  
    current += bandwidth * 1.0;
    usleep(20000);
  }
  printf("download done!\n");
}
int main()
{
  
  download(100*1024*1024,ProcBar);





  return 0;
}
